﻿<UserControl x:Class="MvvmFx.Samples.HowTos.PropertyHandlers.Views.PropertyHandlersView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Views="clr-namespace:MvvmFx.Samples.HowTos.PropertyHandlers.Views"
    Height="Auto" Width="Auto">
    <DockPanel>

        <ListBox  ItemsSource="{Binding Numbers}"
                  SelectedValue="{Binding SelectedNumber}"
                  DisplayMemberPath="Value"
                  Width="60"
                  DockPanel.Dock="Left"
                        />

        <StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom">
            <Button Content="New Numbers" Command="{Binding NewNumbers}" Margin="5,0,5,0" />
            <TextBlock Text="  No. Evens:  " />
            <TextBlock Text="{Binding NumberOfEvens}" FontWeight="Bold"/>
            <TextBlock Text="  No. Negatives:  " />
            <TextBlock Text="{Binding NumberOfNegatives}" FontWeight="Bold" />
        </StackPanel>

        <Views:NumberChangeLogView 
            DataContext="{Binding Path=NumberChangeLog}" 
            Grid.Column="1"/>

    </DockPanel>

</UserControl>
